<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html >
<head>
	<meta name="decorator" content="sysDefault" content="text/html; charset=utf-8"/>
	<script src="${staticPath}/js/pospay/opendialog.js" type="text/javascript"></script>
	<script type="text/javascript">
		$(document).ready(function() {
			$("#key").focus();
			$("#dataForm").validate({
				submitHandler: function(form){
					Oosp_Loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
		});
		
		$(function(){
			opendialog("${contextPath}/pospay/authorityCard/list","authorityCardId");
		})
		$(function(){
			opendialog("${contextPath}/pospay/right/list","rightId");
		})
	</script>
</head>
<body>
	<div class="container-fluid">
		<div class="row">
			<div class="col-xs-12">
				<div class="panel panel-default">
				  <div class="panel-heading">
				    <h3 class="panel-title">编辑数据
						<a class="btn btn-default btn-sm pull-right" role="button" href="javascript:void(0)" onclick="history.go(-1)">返回</a>
				    </h3>
				  </div>
				  <div class="panel-body">
					<form:form id="dataForm" modelAttribute="authorityCardD" action="${contextPath}/pospay/authorityCardD/save" method="post" class="form-horizontal" role="form">
						<form:hidden path="id"/>
						<tags:message content="${message}"/>
								<div class="form-group">
									<label for="authorityCardId" class="col-sm-2 control-label">AUTHORITY_CARD_ID_:</label>
									<div class="col-sm-2">
										<form:input id="authorityCardId" path="authorityCardId" maxlength="20" class="form-control"/>
									</div>
								</div>
								<div class="form-group">
									<label for="rightId" class="col-sm-2 control-label">RIGHT_ID_:</label>
									<div class="col-sm-2">
										<form:input id="rightId" path="rightId" maxlength="20" class="form-control"/>
									</div>
								</div>
								<div class="form-group">
									<label for="rightMoney" class="col-sm-2 control-label">RIGHT_MONEY_:</label>
									<div class="col-sm-2">
										<form:input id="rightMoney" path="rightMoney" maxlength="20" class="form-control"/>
									</div>
								</div>
						<div class="form-group">
						  <div class="col-sm-offset-2 col-sm-10">
						    <input class="btn btn-primary" type="submit" value="保 存"/>
							<input class="btn btn-default" type="button" value="返 回" onclick="history.go(-1)"/>
						  </div>
						</div>
					</form:form>
				  </div>
				</div>			
			</div>
		</div>
	</div>
</body>
</html>